﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AssetStudio
{
    [MessagePack.MessagePackObject(false)]
    public class BoxCollider : Component
    {
        [MessagePack.IgnoreMember]
        public PPtr<Object> m_Material;
        [MessagePack.Key(0)]
        public bool m_IsTrigger;
        [MessagePack.Key(1)]
        public bool m_Enabled;
        [MessagePack.Key(2)]
        public Vector3 m_Size;
        [MessagePack.Key(3)]
        public Vector3 m_Center;
        public BoxCollider() { }
        public BoxCollider(ObjectReader reader) : base(reader)
        {
            m_Material = new PPtr<Object>(reader);
            m_IsTrigger = reader.ReadBoolean();
            m_Enabled = reader.ReadBoolean();
            reader.AlignStream();
            m_Size = reader.ReadVector3();
            m_Center = reader.ReadVector3();
        }
    }
}
